#ifndef __scrptlet_h__
#define __scrptlet_h__

/* Forward Declarations */

struct ENUMDESC;

/* header files for imported files */
#include "types.h"

/* header files for imported files */
#include "window.h"

/* header files for imported files */
#include "document.h"

#ifndef __IWebBridge_FWD_DEFINED__
#define __IWebBridge_FWD_DEFINED__
typedef interface IWebBridge IWebBridge;
#endif     /* __IWebBridge_FWD_DEFINED__ */

#ifndef __IWBScriptControl_FWD_DEFINED__
#define __IWBScriptControl_FWD_DEFINED__
typedef interface IWBScriptControl IWBScriptControl;
#endif     /* __IWBScriptControl_FWD_DEFINED__ */

#ifndef __IWebBridge_INTERFACE_DEFINED__

#define __IWebBridge_INTERFACE_DEFINED__

EXTERN_C const IID IID_IWebBridge;


MIDL_INTERFACE("AE24FDAD-03C6-11D1-8B76-0080C744F389")
IWebBridge : public IDispatch
{
public:
    virtual HRESULT STDMETHODCALLTYPE put_URL(
         /* [in] */ BSTR v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_URL(
         /* [out] */ BSTR * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_Scrollbar(
         /* [in] */ VARIANT_BOOL v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_Scrollbar(
         /* [out] */ VARIANT_BOOL * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_embed(
         /* [in] */ VARIANT_BOOL v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_embed(
         /* [out] */ VARIANT_BOOL * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_event(
         /* [out] */ IDispatch* * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_readyState(
         /* [out] */ long * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE AboutBox(
            ) = 0;

};

#endif     /* __IWebBridge_INTERFACE_DEFINED__ */


#ifndef __IWBScriptControl_INTERFACE_DEFINED__

#define __IWBScriptControl_INTERFACE_DEFINED__

EXTERN_C const IID IID_IWBScriptControl;


MIDL_INTERFACE("A5170870-0CF8-11D1-8B91-0080C744F389")
IWBScriptControl : public IDispatch
{
public:
    virtual HRESULT STDMETHODCALLTYPE raiseEvent(
            /* [in] */ BSTR name,/* [in] */ VARIANT eventData) = 0;

    virtual HRESULT STDMETHODCALLTYPE bubbleEvent(
            ) = 0;

    virtual HRESULT STDMETHODCALLTYPE setContextMenu(
            /* [in] */ VARIANT menuItemPairs) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_selectableContent(
         /* [in] */ VARIANT_BOOL v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_selectableContent(
         /* [out] */ VARIANT_BOOL * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_frozen(
         /* [out] */ VARIANT_BOOL * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_scrollbar(
         /* [in] */ VARIANT_BOOL v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_scrollbar(
         /* [out] */ VARIANT_BOOL * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_version(
         /* [out] */ BSTR * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_visibility(
         /* [out] */ VARIANT_BOOL * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onvisibilitychange(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onvisibilitychange(
         /* [out] */ VARIANT * p) = 0;

};

#endif     /* __IWBScriptControl_INTERFACE_DEFINED__ */


#ifndef _CScriptControl_PROPDESCS_
EXTERN_C const PROPERTYDESC_METHOD s_methdescCScriptControlraiseEvent;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCScriptControlbubbleEvent;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCScriptControlsetContextMenu;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCScriptControlselectableContent;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCScriptControlfrozen;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCScriptControlscrollbar;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCScriptControlversion;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCScriptControlvisibility;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCScriptControlonvisibilitychange;

#endif


EXTERN_C const GUID GUID_Scriptlet;


#ifndef _CScriptlet_PROPDESCS_
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCScriptletURL;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCScriptletScrollbar;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCScriptletembed;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCScriptletevent;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCScriptletreadyState;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCScriptletAboutBox;

#endif


#endif /*__scrptlet_h__*/

